#include <TFT_eSPI.h>
#include "pic3.h"
#define BLK 5
TFT_eSPI tft = TFT_eSPI();




void setup()
{
  pinMode(BLK, OUTPUT);
  tft.init();                //初始化
  tft.fillScreen(TFT_BLACK); //屏幕颜色
}

void loop()
{
  analogWrite(BLK, 150);   //屏幕亮度
  tft.setSwapBytes(true); //使图片颜色由RGB->BGR
   //tft.pushImage(0,0, 200, 112, pic1);
  // delay(1000);
   //tft.pushImage(0,0, 239, 239, test1);
      tft.pushImage(0,0, 240, 240, pic3);
}